package cn.lj.mapper;

import cn.lj.entity.FinanceInfo;
import cn.lj.entity.HistoryVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李津
 * @since 2021-04-21
 */
public interface FinanceInfoMapper extends BaseMapper<FinanceInfo> {

    void updateAllBalance(String balance);

    String findBalance();

    //    String WRAPPER = "ew"
    IPage<FinanceInfo> findFinanceInfoPage(Page<FinanceInfo> page,
                                           @Param(Constants.WRAPPER) QueryWrapper<FinanceInfo> queryWrapper);

    List<HistoryVo> getHistories();
}
